<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/8/29 0029
  Time: 9:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="/include/taglibs.jsp" %>

<script src="${path}/static/taoshunda/business/recommendAdv.js"></script>
<link href="${path}/static/css/public/public.css" rel="stylesheet" type="text/css">

<div class="input-group col-xs-2" style="float: left;margin-bottom: 5px">
    <input type="text" class="form-control entry" id="name" placeholder="请在这里输入商家名称">
</div>

<div style="float: left;" class="input-group col-xs-2">
    <select class="form-control entry" id="city">
        <option value="0">--请选择--</option>
    </select>
</div>

<div class="input-group col-xs-2" style="float: left;margin-left: 3px;margin-bottom: 3px">
    <select class="form-control entry" id="type">
        <option value="0">--请选择--</option>
        <option value="1">首页广告位</option>
        <option value="2">红包广告位</option>
    </select>
</div>


<div style="float: left;margin-bottom: 5px">
    <button type="button" class="btn query_button" onclick="queryAdvName()" style="width: 100px;margin-left: 5px">
        <%--<span class="glyphicon glyphicon-search" aria-hidden="true"></span>--%>
        查询
    </button>
</div>

<table id="table"
       class="table table-striped table-bordered"
       data-toggle="table"
       data-url="${path}/web/carousel/queryCarousel"
       data-toolbar="#toolbar"
       data-side-pagination="server"
       data-pagination="true"
       data-page-list="[5, 10, 20, 50, 100, 200]"
>
    <thead>
    <tr>
        <th data-field="id" data-visible="false">编号</th>
        <th data-formatter="storePic">轮播图片</th>
        <th data-field="cityName">城市</th>
        <th data-field="busName">商家名称</th>
        <th data-field="patTime">展示时间(月)</th>
        <th data-field="payMoney">缴费金额(元)</th>
        <%--<th data-formatter="orderNum" data-events="operateOrderNum">轮播图排序</th>--%>
        <th data-formatter="operateFormatter" data-events="operateEvents">操作</th>
    </tr>
    </thead>
</table>


<div id="updateNum-div" class="slidingmenu box-model box box-info">
    <div class="box-header">
        <h3 class="box-title">修改排序</h3>
    </div>

    <div style="margin-top: 4%">
        <from role="form" method="post" id="updateOrderNumFrom">
            <input type="hidden" id="id" name="id">

            <div class="form-group" style="margin-left: 2%">
                <label>排序:</label>
                <input type="text" class="form-control" id="orderNum" name="orderNum" placeholder="0为最小值">
            </div>
        </from>
    </div>

    <div class="box-footer" style="margin-top: 10%">
        <button class="btn btn-info" data-event="submit-updateNum">确定</button>
        &nbsp;
        <button class="btn close-model" style="background-color: red;color: snow">关闭</button>
    </div>
</div>


<div id="replace-div" class="slidingmenu box-model box box-info" style="z-index:0;" model-width="45%">
    <div class="box-header">
        <h3 class="box-title">修改图片</h3>
    </div>
    <div class="box box-info">
        <div class="box-body">
            <form role="form" method="post" id="updateReplaceFrom">
                <input id="idUpdate" name="id" type="hidden">

                <div class="form-group">
                    <input type="hidden" name="picPath" id="pic">
                    <label>轮播图:</label><br>
                    <img width="200" height="100" id="image" src="${path}/static/images/commons/img_add.png"
                         class="addImage"><br><span style="color: red">推荐上传图片为1250 x 800以上分辨率的图片</span>
                </div>
            </form>
            <div class="box-footer" style="margin-top: 3%">
                <button class="btn btn-info" data-event="submit-replacePicture">确定</button>
                &nbsp;
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div>
    </div>
</div>

<div id="detailImage-div" style="z-index:999" class="slidingmenu box-model box box-info">
    <div class="box box-info">
        <div class="box-body">
            <div class="form-group">
                <div id="detailImage" style="margin-top: 5%">

                </div>
            </div>
            <div class="box-footer">
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div><!-- /.box-body -->
    </div>
</div>